package example;

public class Example6 {

    public static void main(String[] args) {
        Thread t = new Thread(()->{
            System.out.println("1");
        },"我创建的线程");
        t.start();
        System.out.println("线程的名字是: "+t.getName());
    }
}
